package com.gxa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gxa.pojo.cm.Customer;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;


public class Order {

    private Integer id;
    private Integer serveId;
    private Integer customerId;
    private String type;
    private String number;
    private String  commodity;
    private BigDecimal mount;

    private Double total;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp orderTime;
    private Integer status;
    private Integer isDeleted;
    private Integer nums;

    private Serve serve;


    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Serve getServe() {
        return serve;
    }

    public void setServe(Serve serve) {
        this.serve = serve;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", serveId=" + serveId +
                ", customerId=" + customerId +
                ", type='" + type + '\'' +
                ", number='" + number + '\'' +
                ", commodity='" + commodity + '\'' +
                ", mount=" + mount +
                ", total=" + total +
                ", orderTime=" + orderTime +
                ", status=" + status +
                ", isDeleted=" + isDeleted +
                ", nums=" + nums +
                ", serve=" + serve +
                ", customer=" + customer +
                '}';
    }

    public Integer getServeId() {
        return serveId;
    }

    public void setServeId(Integer serveId) {
        this.serveId = serveId;
    }

    private Customer customer;

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Order(){

    };

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCommodity() {
        return commodity;
    }

    public void setCommodity(String commodity) {
        this.commodity = commodity;
    }


    public Timestamp getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Timestamp orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getMount() {
        return mount;
    }

    public void setMount(BigDecimal mount) {
        this.mount = mount;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

}
